/*
* 样式：
* 良好|118分
* */
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:frametrim/utility/sq_color.dart';

class StatueAndPointMarkView extends StatelessWidget {
  late Color borderColor;
  late Color fullColor;
  late String mState;
  late String mPoint;
  StatueAndPointMarkView(
  {Key? key , required this.borderColor,required this.fullColor,required this.mState,required this.mPoint});
  @override
  Widget build(BuildContext context) {
    return Container(
      alignment: Alignment.center,
      child: Row(
        children: [
          Container(
            padding: EdgeInsets.symmetric(horizontal: 3,vertical: 2),
            decoration: BoxDecoration(
                color: borderColor,
                border: Border.all(color: borderColor,width: 1),
                borderRadius: BorderRadius.only(topLeft: Radius.circular(4),bottomLeft: Radius.circular(4))),
            child: Text(mState,style: TextStyle(fontSize: 14,color: SQColor.white)),
          ),
          Container(
            padding: EdgeInsets.symmetric(horizontal: 3,vertical: 2),
            decoration: BoxDecoration(
                color: fullColor,
            border: Border.all(color: borderColor,width: 1),
            borderRadius: BorderRadius.only(topRight: Radius.circular(4),bottomRight: Radius.circular(4))),
            child: Text(mPoint,style: TextStyle(fontSize: 14,color: borderColor)),
          ),
        ],
      ),
    );
  }


}
